import React,{ createRef} from 'react';
import {Provider} from './react-redux'
import ReactDOM from 'react-dom'
import Add from './components/Add.js'
import Add2 from './components/Add2'
import AddActity from './components/AddActity'
import List from './components/List.js'
import store from './store'
function Main1(){
  let ref = React.createRef()
  React.useEffect(() => {
    
  })
  const click=()=>{
    console.log(ref);
  }
  return (
    <Provider store={store}>
      <button onClick={click}></button>
      <Add is="false"  />
      <Add2 ref={ref}/>
      <AddActity />
      <List test="王" />
    </Provider>
  )
}
ReactDOM.render(<Main1 />, document.getElementById('root'))